package com.mars.oauth2.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mars.oauth2.entity.AdminRole;
import com.mars.oauth2.entity.Role;
import com.mars.oauth2.mapper.AdminRoleMapper;
import com.mars.oauth2.mapper.RoleMapper;
import com.mars.oauth2.service.AdminRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用戶角色關聯表 服务实现类
 * </p>
 *
 * @author mars
 * @since 2021-04-22
 */
@Service
public class AdminRoleServiceImpl extends ServiceImpl<AdminRoleMapper, AdminRole> implements AdminRoleService {


    @Autowired
    private RoleMapper roleMapper;

    @Autowired
    private AdminRoleMapper adminRoleMapper;

    public RoleMapper getRoleMapper() {
        return roleMapper;
    }

    public List<Role>getRoleByAdminId(Integer adminId){

        QueryWrapper<Object> objectQueryWrapper = new QueryWrapper<>();
        return null;
    }
}
